package global

import (
	"sync"
)

var (
	Wg      sync.WaitGroup
	EndChan chan struct{}
	MbChan  chan string
	//JsonData chan string
	Uid     string
	DataKey string
	Config  RedaViper
	AreaMap map[string]string
)

type RedaViper struct {
	Mysql  Mysql  `mapstructure:"Mysql"`
	Redis  Redis  `mapstructure:"Redis"`
	PwdKey string `mapstructure:"PwdKey"`
}

type Mysql struct {
	MysqlPwd  string `mapstructure:"MysqlPwd"`
	MysqlHot  string `mapstructure:"MysqlHot"`
	MysqlPort string `mapstructure:"MysqlPort"`
	Database  string `mapstructure:"Database"`
}

type Redis struct {
	RedisPwd  string `mapstructure:"RedisPwd"`
	RedisHot  string `mapstructure:"RedisHot"`
	RedisPort string `mapstructure:"RedisPort"`
}

type Job struct {
	Title            string   `json:"title"`
	City             string   `json:"city"`
	Education        string   `json:"education"`
	Experience       string   `json:"experience"`
	Address          string   `json:"address"`
	Salary           string   `json:"salary"`
	Recruiter        string   `json:"recruiter"`
	RecruiterTitle   string   `json:"recruiter_title"`
	Company          string   `json:"company"`
	CompanySize      string   `json:"company_size"`
	CompanyType      string   `json:"company_type"`
	CompanyStatus    string   `json:"company_status"`
	Benefits         []string `json:"benefits"`
	Description      string   `json:"description"`
	Responsibilities []string `json:"responsibilities"`
}
